package com.lyEducation.services.base;

import com.lyEducation.core.base.BaseDateService;
import com.lyEducation.entities.base.BaseDataEntity;
import com.lyEducation.repository.base.BaseDateRepository;
import com.lyEducation.util.controllerUtil.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public abstract class BaseDateServiceImpl<X extends BaseDataEntity> extends BaseServiceImpl<X>
    implements BaseDateService<X> {
  @Autowired protected BaseDateRepository<X> baseDateRepository;
  
  @Override
  public JsonResult batchObject(List<X> entityList) {
    return baseDateRepository.batchObject(entityList);
  }
  //
  //  abstract List<X> findData(Object o);
}
